package priv.yiyuan.example.design.chain.command02;

/**
 * 用户登录上下文
 * <p>
 * 具体上下文
 *
 * @author YiYuan
 * @data 2025/10/9
 * @apoNote
 */
public class LoginContext implements Context {

    private String userId;

    private String loginTime;

    public LoginContext(String userId, String loginTime) {
        this.userId = userId;
        this.loginTime = loginTime;
    }

    @Override
    public String getLogMessage() {
        return "用户登录: ID=" + userId + ", 时间=" + loginTime;
    }

}
